<%@ include file="/taglibs.jsp"%>

<head>
    <title>
    <c:if test="${empty param.id}">
    	<fmt:message key="subCategoryForm.add.title"/>
    </c:if>
    <c:if test="${not empty param.id}">
    	<fmt:message key="subCategoryForm.edit.title"/>
    </c:if>
    </title>
</head>

<p><fmt:message key="detailForm.header"/></p>
  
<s:form name="subCategoryForm" action="saveSubCategory" method="post" validate="true">
<s:hidden name="id" value="%{entity.id}"/>
<s:select required="true" key="subCategory.category" cssStyle="max-width: 500px !important;" name="cateId" list="categories" listKey="id" listValue="categoryName" headerKey="%{getText('select.default.key')}" headerValue="%{getText('select.default.value')}"></s:select>
<tr>
	<td>
		<s:text name="subCategory.name"></s:text>
        <span class="required">*</span>:
    </td>
    <td>
    	<s:textfield maxlength="250" name="name" id="name" required="true" size="50" theme="simple"/> 
    </td>
</tr>
<%@ include file="/common_functions.jsp"%>

</s:form>

